package com.zzyl.mapper;

import com.zzyl.entity.RoleResource;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface RoleResourceMapper {
    @Select("delete from sys_role_resource where role_id = #{id}")
    void deleteByRoleId(Long id);

    void batchInert(@Param("list") List<RoleResource> list);
}
